package adminUserAccountRepository

import (
	adminUserAccountModel "gitee.com/krio/ginc/example/internal/admin/user/account/model"
	commonEntry "gitee.com/krio/ginc/example/internal/common/entry/common"
	"github.com/gin-gonic/gin"
)

type AdminUserRepos interface {
	UserAdd(ctx *gin.Context, one *adminUserAccountModel.AdminUserAccount) (int64, error)
	UserUpdate(ctx *gin.Context, req *adminUserAccountModel.AdminUserAccount) (int64, error)
	UserDelete(ctx *gin.Context, id []int64) error
	UserDetail(ctx *gin.Context, ids int64) (*adminUserAccountModel.AdminUserAccount, bool, error)
	UserDetailByInfo(ctx *gin.Context, info *adminUserAccountModel.AdminUserAccount) (*adminUserAccountModel.AdminUserAccount, bool, error)
	UserList(ctx *gin.Context, req *commonEntry.ListCommonReq) ([]*adminUserAccountModel.AdminUserAccount, int64, error)
}
